package com.tocean.app.entity.common;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import org.hibernate.annotations.GenericGenerator;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@Table(name = "test_paper")
public class TestPaper implements Serializable {

    @ApiModelProperty("试卷ID(主键)")
    @NotBlank(message = "试卷ID不能为空")
    @TableId
    private String paperId;

    @ApiModelProperty("试卷名")
    @NotBlank(message = "试卷名不能为空")
    private String paperName;

    @ApiModelProperty("试卷科目")
    @NotBlank(message = "试卷科目不能为空")
    private String paperSubject;

    @ApiModelProperty("试卷年级")
    @NotBlank(message = "试卷年级不能为空")
    private String paperGrade;

    @ApiModelProperty("年级分类")
    @NotBlank(message = "年级分类不能为空")
    private String paperType;

}
